export default {
    DATABASE: {
        DB: {
            USERNAME: process.env.DB_USERNAME || '',
            PASSWORD: process.env.DB_PASSWORD || '',
            DATABASE: process.env.DB_DATABASE || '',
            HOST: process.env.DB_DATAHOST || '',
        },
        REDIS: {
            PASSWORD: process.env.REDIS_PASSWORD || '',
            PORT: Number(process.env.REDIS_PORT),
            HOST: process.env.REDIS_HOST || '',
        },
    },

    APPLICATION: {
        HOST: process.env.APPLICATION_HOST,
        PORT: Number(process.env.APPLICATION_PORT) || 12306,
    },

    SECRET: {},

    KEYS: {
        secretOrKey: process.env.JWT_SECRETKEY || '',
    },

    MAIL: {
        HOST: process.env.MAIL_HUST || 'smtp.163.com',
        USER: process.env.MAIL_AUTH_USER || 'personalcalendar@163.com',
        PASS: process.env.MAIL_AUTH_PASS || '',
    },
};
